package lock锁;

public class 测试类 {
    public static void main(String[] args) {
        TicketRunnable ticketRunnable = new TicketRunnable();
        Thread thread1 = new Thread(ticketRunnable,"窗口一");
        thread1.start();
        Thread thread2 = new Thread(ticketRunnable,"窗口二");
        thread2.start();
        Thread thread3 = new Thread(ticketRunnable,"窗口三");
        thread3.start();
        Thread thread4 = new Thread(ticketRunnable,"窗口四");
        thread4.start();

    }
}
